package com.bw.seckill.service.impl;

import com.bw.seckill.entity.TbSeckillOrder;
import com.bw.seckill.entity.TbSeckillOrderReq;
import com.bw.seckill.mapper.TbSeckillOrderMapper;
import com.bw.seckill.service.ITbSeckillOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xingjinning
 * @since 2020-07-14
 */
@Service
public class TbSeckillOrderServiceImpl extends ServiceImpl<TbSeckillOrderMapper, TbSeckillOrder> implements ITbSeckillOrderService {

    @Autowired
    private TbSeckillOrderMapper orderMapper;

    @Override
    public List<TbSeckillOrderReq> findOrder(long uid) {
        List<TbSeckillOrderReq> list=orderMapper.findOrder(uid);
        return list;
    }
}
